package liuwanghui.mapper;

import liuwanghui.dto.request.UserProfileUpdateDTO;
import liuwanghui.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    User findById(@Param("id") Long id);
    
    User findByUsername(String username);
    
    void insert(User user);
    
    void updatePassword(User user);
    
    void updateProfile(@Param("id") Long id, @Param("dto") UserProfileUpdateDTO dto);
    
    void updateLastLoginTime(User user);
} 